package com.example.datamanage.service;

import com.example.datamanage.common.Result;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author 28142
 * @description 数据查询 service接口
 * @date 2023/7/26 17:28
 */
public interface DataService {
    Result showTables(String type, String database);

    Result showViews(String type, String database);

    Result showAllTables(String database);

    Result showColumns(String database, String table);

    Result showTablesByCondition(String database, Integer pageNum, Integer pageSize, String chName, String enName);

    void fullExport(String table, String fileName, String type, List<String> fields, HttpServletResponse response);

    Result getInfo(String database, String type, Integer pageNum, Integer pageSize);
}
